package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.CommentLikeMapper;
import com.ruoyi.product.domain.CommentLike;
import com.ruoyi.product.service.ICommentLikeService;

/**
 * 评论点赞Service业务层处理
 * 
 * @author guoguoa
 * @date 2025-01-07
 */
@Service
public class CommentLikeServiceImpl implements ICommentLikeService 
{
    @Autowired
    private CommentLikeMapper commentLikeMapper;

    /**
     * 查询评论点赞
     * 
     * @param id 评论点赞主键
     * @return 评论点赞
     */
    @Override
    public CommentLike selectCommentLikeById(Integer id)
    {
        return commentLikeMapper.selectCommentLikeById(id);
    }

    /**
     * 查询评论点赞列表
     * 
     * @param commentLike 评论点赞
     * @return 评论点赞
     */
    @Override
    public List<CommentLike> selectCommentLikeList(CommentLike commentLike)
    {
        return commentLikeMapper.selectCommentLikeList(commentLike);
    }

    /**
     * 新增评论点赞
     * 
     * @param commentLike 评论点赞
     * @return 结果
     */
    @Override
    public int insertCommentLike(CommentLike commentLike)
    {
        return commentLikeMapper.insertCommentLike(commentLike);
    }

    /**
     * 修改评论点赞
     * 
     * @param commentLike 评论点赞
     * @return 结果
     */
    @Override
    public int updateCommentLike(CommentLike commentLike)
    {
        return commentLikeMapper.updateCommentLike(commentLike);
    }

    /**
     * 批量删除评论点赞
     * 
     * @param ids 需要删除的评论点赞主键
     * @return 结果
     */
    @Override
    public int deleteCommentLikeByIds(Integer[] ids)
    {
        return commentLikeMapper.deleteCommentLikeByIds(ids);
    }

    /**
     * 删除评论点赞信息
     * 
     * @param id 评论点赞主键
     * @return 结果
     */
    @Override
    public int deleteCommentLikeById(Integer id)
    {
        return commentLikeMapper.deleteCommentLikeById(id);
    }
}
